-
Notifications
You must be signed in to change notification settings - Fork 178
β¨ feat(tests): EIP-7928 No-op and adjacent test case #2178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
f3ef32a
to
97e7edc
Compare
4b4405a
to
ccd2966
Compare
85480d5
to
179c570
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @raxhvl, I think this is good to go but can use your eyes as a sanity check before merging. Some things to note:
- As we talked about, I updated the empty account expectations to use
BalAccountExpectation.empty()
explicitly here. We raise if ambiguousBalAccountExpectation()
is used. I think this explicitness is much nicer for a reader / implementer. I added unit tests for these as well. - I removed a duplicate test. It looks like the fully unmutated test was exactly the same as the
bal_noop_storage_write
test except for checking the storage read, which I added to the latter and removed the former here. - I also moved the tests into the main file and added a changelog entry.
Let me know if you think this is good to go as well and we can get this merged π. Thanks for your work on all these ππΌ
179c570
to
5b0d5cb
Compare
5b0d5cb
to
faed742
Compare
I reviewed it and the tests look good.
There is a difference: the fully unmutated test also includes a zero value eth transfer along with a storage no op. This means it checks two no-op operations on two account fields simultaneously (balance and storage). Since nonce and code cannot have no-op operations, this test effectively covers all that can be tested. |
But there was no balance expectation in this test. They were exactly the same if we don't check that. I think this makes sense then. We can put it back but I will add the explicit no-balance-changes check to it as well. |
ποΈ Description
Adds No-op and no-op adjacent test cases for EIP-7928
π Related Issues or PRs
β Checklist
tox
checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:uvx --with=tox-uv tox -e lint,typecheck,spellcheck,markdownlint
type(scope):
.